package com.liyuncong.algorithm.algorithm_kmeans.entity;

import java.util.List;

import com.liyuncong.algorithm.algorithm_kmeans.util.ClusterUtil;
import com.liyuncong.algorithm.algorithm_similarity.entity.Vector;

public class Cluster {
	private Vector center;
	private List<Vector> elementList;
	
	public Cluster(List<Vector> elementList) {
		this.elementList = elementList;
		try {
			this.center = ClusterUtil.getCenter(elementList);
			// test
		} catch (IllegalAccessException e) {
			e.printStackTrace();
		}
	}
	public Vector getCenter() {
		return center;
	}
	public List<Vector> getElementList() {
		return elementList;
	}
}
